from django.conf.urls.defaults import *
from djforum.settings import MEDIA_ROOT

from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('',
    # Example:
    # (r'^djangopower/', include('djangopower.foo.urls')),
    # static media serving for dev
    (r'^site_media/(?P<path>.*)$',
        'django.views.static.serve',
        {'document_root': MEDIA_ROOT}
    ),

    # Uncomment this for admin:
    (r'^admin/(.*)', admin.site.root),
    
    (r'^forum/',include('djforum.forum.urls')),
    
    #self-defined admin
    #(r'^myadmin/', include('djforum.forum.admin_urls')),
)
